package cs271.examples.oop;

/**
 * This class is a super class for MySubClass, used as an inheritance example.
 *
 * @author mbone
 */
public class MySuperClass {
    
    //subclasses cannot access this instance variable
    private String myPrivateString;
    
    //subclasses can access this instance variable
    protected int protectedInt;
    

    public MySuperClass() {
    	//empty constructor
    }

    public void setMyPrivateString(String myPrivateString) {
        this.myPrivateString = myPrivateString;
    }
    
    public String getMyPrivateString() {
        return this.myPrivateString;
    }
    
}
